import request from '@/utils/request'

// 查询砂石骨料矿山中转至灯塔货场列表
export function listTolighthoused(query) {
  return request({
    url: '/app/tolighthoused/list',
    method: 'get',
    params: query
  })
}

// 查询砂石骨料矿山中转至灯塔货场详细
export function getTolighthoused(id) {
  return request({
    url: '/app/tolighthoused/' + id,
    method: 'get'
  })
}

// 新增砂石骨料矿山中转至灯塔货场
export function addTolighthoused(data) {
  return request({
    url: '/app/tolighthoused',
    method: 'post',
    data: data
  })
}

// 修改砂石骨料矿山中转至灯塔货场
export function updateTolighthoused(data) {
  return request({
    url: '/app/tolighthoused',
    method: 'put',
    data: data
  })
}

// 删除砂石骨料矿山中转至灯塔货场
export function delTolighthoused(id) {
  return request({
    url: '/app/tolighthoused/' + id,
    method: 'delete'
  })
}
// 砂石骨料类型
export function getAggregateList(params) {
  return request({
    url: '/app/aggregate/list',
    method: 'get',
    params
  })
}
// 砂石骨料新增
export function aggregateAdd(data) {
  return request({
    url: '/app/aggregate',
    method: 'post',
    data
  })
}
// 砂石骨料类型
export function aggregateDel(data) {
  return request({
    url: `/app/aggregate/${data.id}`,
    method: 'delete',
    data
  })
}